punishment fits the crime

Translations
наказание соответствует преступлению
The judge ensured that the punishment fits the crime.
Судья убедился, что наказание соответствует преступлению.
Definitions
The principle that the severity of a punishment should be proportionate to the seriousness of the crime committed.